package com.hxht.cmp.mapper;

import com.hxht.cmp.entity.Warning;
import com.hxht.cmp.pojo.SearchCriteria;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface WarningMapper extends Mapper<Warning> {
    /**
     * 单法院的报警信息
     * @param searchCriteria
     * @return
     */
    List<Warning> selectWarnInfo(@Param("param")SearchCriteria searchCriteria);

    /**
     * 单法院的总数
     * @param searchCriteria
     * @return
     */
    int getCountWarnInfo(@Param("param") SearchCriteria searchCriteria);
    /**
     * 区域法院的报警信息
     * @param searchCriteria
     * @return
     */
    List<Warning> selectAllWarnInfo(@Param("param")SearchCriteria searchCriteria);
    /**
     * 区域法院的总数
     * @param searchCriteria
     * @return
     */
    int getCountAllWarnInfo(@Param("param")SearchCriteria searchCriteria);
}
